<?php
/**
 * The template for displaying Archives by Category.
 *
 * @package Behold
 * @since Behold 1.0.0
 */
?>

<?php
	get_header(); 
	if ( have_posts() ) :
		printf( __( '<h3 id="archive-type-title">Category Archives: %s </h3>', 'Behold' ), '<span>' . single_cat_title( '', false ) . '</span>' );
	behold_post_navigation( "nav-above" );
	endif;
?>

<div id="main" class="group">
	<div id="posts-container">			
		<?php
			while ( have_posts() ) :
				the_post();				
				if ( get_post_format() == "gallery" ):
						get_template_part( 'content', 'gallery' );
					else:
						get_template_part( 'content' );
				endif;				
			endwhile;
		?>
	</div>	<!-- closing of posts-container> -->
	
	<?php
		if ( have_posts () ):
			behold_post_navigation( "nav-below" );
		endif;
	?>
	
</div><!-- closing of main -->

<?php
	get_sidebar( 'right' );
	get_footer(); 
?>
